package com.sykj.bsc.jhy.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sykj.bsc.jhy.entity.Bis_business_order;
import com.sykj.bsc.jhy.service.Bis_business_orderService;

@Controller
@RequestMapping("proltal/jhy")
public class Bis_business_orderController2 {

	//前台列表
	@Autowired
	Bis_business_orderService impl;
	@RequestMapping("qiantaiBusiness")
	public String selectQiantaiBusiness(Bis_business_order bbo, Model model,HttpSession session) {
		String shop_id=(String)session.getAttribute("shop_id");
		bbo.setShop_id(shop_id);
		List<Bis_business_order> list = impl.selectBis_business_order(bbo);
		model.addAttribute("list", list);
		model.addAttribute("bbo", bbo);
		return "foreground/jhy/qiantaiBusiness";
	}
}
